package com.kgc.community.service;

import com.github.pagehelper.PageInfo;
import com.kgc.community.pojo.Equipment;

import java.util.List;

public interface EquipmentService {

    /**
     *
     * @param condition
     * @param pageNum
     * @param pageSize
     * @return
     */
    public PageInfo<Equipment> searchEquipmentToPage(String condition,Integer pageNum,Integer pageSize,String startTimeStr,String endTimeStr);

    /**
     * 动态添加
     * @param equipment
     * @return
     */
    public Integer insertSelective(Equipment equipment);

    /**
     * 根据id删除
     * @param idList
     * @return
     */
    public Integer deleteByIdList(List<Integer> idList);

    /**
     * 动态修改
     * @param equipment
     * @return
     */
    public Integer updateById(Equipment equipment);

    public Equipment searchById(Integer id);
}
